package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareGoodsAttr;
import com.YxyBackMange.Mapper.Ware.WareGoodsAttrMapper;
import com.YxyBackMange.Service.Ware.WareGoodsAttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareGoodsAttrServiceImpl implements WareGoodsAttrService{
	
	@Autowired
    private WareGoodsAttrMapper wareGoodsAttrMapper;
    
   @Override
   public WareGoodsAttr insertService(WareGoodsAttr wareGoodsAttr){
        wareGoodsAttrMapper.insertSelective(wareGoodsAttr);
	   return wareGoodsAttr;
	   
   };
   @Override
   public WareGoodsAttr updateService(WareGoodsAttr wareGoodsAttr){
	     wareGoodsAttrMapper.updateByPrimaryKeySelective(wareGoodsAttr);
        return wareGoodsAttr;
   };
    @Override
    public WareGoodsAttr update(WareGoodsAttr wareGoodsAttr) {
        wareGoodsAttrMapper.updateByPrimaryKeySelective(wareGoodsAttr);
        return wareGoodsAttr;
    }
   @Override
   public WareGoodsAttr delete(WareGoodsAttr wareGoodsAttr){

	     wareGoodsAttrMapper.delete(wareGoodsAttr);
        return wareGoodsAttr;
   };
    @Override
    public WareGoodsAttr insert(WareGoodsAttr wareGoodsAttr){

        wareGoodsAttrMapper.insertSelective(wareGoodsAttr);
        return wareGoodsAttr;

        };
}
